{include file="start-jquery"/}
{include file="module:include-business"/}
{include file="module:include-sortable"/}
<title>重卡汇 商户注册中心</title>
<style type="text/css">
	@media(min-width: 1000px){
		.bg-console
		{padding:20px 0px;}
	}
</style>
<div class='bg-console'>
	<div class='container'>
		<div class=''>
			<div class='page__hd'>
				<h1>重卡汇商户注册</h1>
			</div>
			{include file='business:register-unit-info' /}
		</div>
	</div>
</div>
<div class='modal' id='unit-position-modal'>
	<div class='modal-dialog'>
		<div class='weui-cells__title'>扫描二维码使用微信获取坐标</div>
		<div class='weui-cells' style="padding:30px;text-align: center;">
			<img src='' style="height: 200px;width: 200px;background: #ccc;" />
		</div>
	</div>
	<div id="unit_id"></div>
</div>
{include file="end"/}
<script type="text/javascript">
	$(window).on('bc-logout-success', function(event) {
		location.reload();
	});
	$(function(){
		INFO.reload('#unit-register-info')
		POST.init(document,{
			method:'change',
			url:'/unit/modify',
			text:"修改",
			style:'input',
			input:function(e){
				var e = $(e);
				var key = e.attr('name');
				var content = e.val();
				return {key:key,content:content}
			},
			success:function(e,res){
				if(!res.state) return;
			}
		},".unit-modify")
	})

    POST.init(document,{
        method:'click',
        url:'/unit/apply',
        text:"申请",
        success:function(e,res){
            if(!res.state) return;
        }
    },"#apply")
</script>